package com.wyx.Controller;

import com.wyx.Pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/orderdetail")
public class OrderDetailController {
    @RequestMapping("/get")
    public void getSession(HttpSession session){
        User user = (User) session.getAttribute("user");
        System.out.println(user);
    }
}
